﻿// See https://aka.ms/new-console-template for more information
using System;
using System.Collections.Generic;
class Program
{
    static void Main()
    {
        string input = Console.ReadLine();
        string[] numstring = input.Split(' ');
        int[] numbers = new int[numstring.Length];
        for (int i = 0; i < numstring.Length; i++)
        {
            if (int.TryParse(numstring[i], out int parsedNumber))
            {
                numbers[i] = parsedNumber;
            }
            else
            {
                Console.WriteLine($"无法解析第 {i + 1} 个数字：{numstring[i]}");
            }
        }

        int max = numbers[0];
        int min = numbers[0];
        int sum = 0;

        for(int i = 0; i < numbers.Length; i++)
        {
            if (max < numbers[i]) { max = numbers[i]; }
            if (min > numbers[i]){ min = numbers[i]; }
            sum+= numbers[i];
        }

        double average = (double)sum / numbers.Length;

        Console.WriteLine($"最大值：{max}");
        Console.WriteLine($"最小值：{min}");
        Console.WriteLine($"总和：{sum}");
        Console.WriteLine($"平均值：{average}");
    }
}
